<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
	xmlns:a="urn:jsptld:/WEB-INF/alfresco.tld"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">

	<jsp:output doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
		doctype-system="http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />

	<jsp:directive.page language="java" buffer="32kb"
		contentType="text/html; charset=UTF-8" />
	<jsp:directive.page isELIgnored="false" />

	<h:outputText id="microformats-hatom-intro"
		value="Define an hEntry for the Selected XSL file." escape="false" />
	<h:outputText
		value="  Error: There are different hAtom properties with same value."
		style="font-style: italic; color: red;"
		rendered="#{DialogManager.bean.conflict}" />
	<h:outputText
		value="  Error: There are required fields that are not defined."
		style="font-style: italic; color: red;"
		rendered="#{not DialogManager.bean.requiredFieldsDefined}" />
	<h:panelGrid id="panel_grid_specify_details" columns="4"
		cellpadding="3" cellspacing="3" border="0" width="100%"
		columnClasses="panelGridRequiredImageColumn,panelGridLabelColumn,panelGridValueColumn,panelGridRequiredImageColumn">


		<h:graphicImage id="required-image-hatom-title"
			value="/images/icons/required_field.gif" alt="#{msg.required_field}" />
		<h:outputText id="hatom-title-output-text-title"
			value="hEntry's Title:" />
		<h:selectOneMenu id="hatom-title"
			value="#{DialogManager.bean.entryTitle}">
			<f:selectItems id="microformats-hatom-properties-title"
				value="#{DialogManager.bean.xslSelects}" />
		</h:selectOneMenu>
		<h:column id="microformats-hatom-help-title" />

		<h:graphicImage id="required-image-hatom-summary"
			value="/images/icons/hidden.gif" alt="#{msg.required_field}" />
		<h:outputText id="rhatom-summary-output-text-summary"
			value="hEntry's Summary:" />
		<h:selectOneMenu id="hatom-summary"
			value="#{DialogManager.bean.entrySummary}">
			<f:selectItems id="microformats-hatom-properties-summary"
				value="#{DialogManager.bean.xslSelects}" />
		</h:selectOneMenu>
		<h:column id="microformats-hatom-help-summary" />

		<h:graphicImage id="required-image-hatom-content"
			value="/images/icons/hidden.gif" alt="#{msg.required_field}" />
		<h:outputText id="hatom-content-output-text-content"
			value="hEntry's Content:" />
		<h:selectOneMenu id="hatom-content"
			value="#{DialogManager.bean.entryContent}">
			<f:selectItems id="microformats-hatom-properties-content"
				value="#{DialogManager.bean.xslSelects}" />
		</h:selectOneMenu>
		<h:column id="microformats-hatom-help-content" />

		<h:graphicImage id="required-image-hatom-updated"
			value="/images/icons/required_field.gif" alt="#{msg.required_field}" />
		<h:outputText id="hatom-updated-output-text-updated"
			value="hEntry's Updated:" />
		<h:selectOneMenu id="hatom-updated"
			value="#{DialogManager.bean.entryUpdated}">
			<f:selectItems id="microformats-hatom-properties-updated"
				value="#{DialogManager.bean.xslSelects}" />
		</h:selectOneMenu>
		<h:column id="microformats-hatom-help-updated" />

		<h:graphicImage id="required-image-hatom-author"
			value="/images/icons/hidden.gif" alt="#{msg.required_field}" />
		<h:outputText id="hatom-author-output-text-author"
			value="hEntry's Author:" />
		<h:selectOneMenu id="hatom-author"
			value="#{DialogManager.bean.entryAuthor}">
			<f:selectItems id="microformats-hatom-properties-author"
				value="#{DialogManager.bean.xslSelects}" />
		</h:selectOneMenu>
		<h:column id="microformats-hatom-help-author" />
	</h:panelGrid>

	<h:panelGroup id="add-panel-group" styleClass="mainSubText">
		<h:commandButton id="add-to-list-button"
			value="#{msg.add_to_list_button}"
			actionListener="#{DialogManager.bean.addSelectedhEntryBean}"
			styleClass="wizardButton" />
	</h:panelGroup>

	<f:verbatim>
		<div style='padding: 4px'></div>
	</f:verbatim>
	<h:panelGroup id="added-data-table-panel-group">
		<h:dataTable id="added-hentry-data-table"
			value="#{DialogManager.bean.addedEntryDataModel}" var="row"
			rowClasses="selectedItemsRow,selectedItemsRowAlt"
			styleClass="selectedItems" headerClass="selectedItemsHeader"
			cellspacing="0" cellpadding="4" width="100%"
			rendered="#{DialogManager.bean.addedEntryDataModel.rowCount != 0}">
			<h:column id="added-data-table-column-0">
				<f:facet name="header">
					<h:outputText id="added-data-table-name-0" value="Added hEntries." />
				</f:facet>
				<f:verbatim>
					<img style="float: left"
						src="${pageContext.request.contextPath}/images/icons/hentry_list.gif" />
				</f:verbatim>
				<h:panelGrid id="panel_grid_row" columns="2" cellspacing="1"
					border="0">
					<h:outputText id="added-data-table-name-0-name"
						value="#{msg.name}: " />
					<h:outputText id="added-data-table-value-0-name"
						value="#{row.name}" />

					<h:outputText id="added-data-table-name-0-title"
						value="Title Property: " />
					<h:outputText id="added-data-table-value-0-title"
						value="#{row.titleDescription}" />

					<h:outputText id="added-data-table-name-0-summary"
						value="Summary Property: " />
					<h:outputText id="added-data-table-value-0-summary"
						value="#{row.summaryDescription}" />

					<h:outputText id="added-data-table-name-0-content"
						value="Content Property: " />
					<h:outputText id="added-data-table-value-0-content"
						value="#{row.contentDescription}" />

					<h:outputText id="added-data-table-name-0-updated"
						value="Updated Property: " />
					<h:outputText id="added-data-table-value-0-updated"
						value="#{row.updatedDescription}" />

					<h:outputText id="added-data-table-name-0-author"
						value="Author Property: " />
					<h:outputText id="added-data-table-value-0-author"
						value="#{row.authorDescription}" />

				</h:panelGrid>
			</h:column>
			<h:column id="added-data-table-column-5">
				<a:actionLink id="update-added-hentry-action-link"
					actionListener="#{DialogManager.bean.updateAddedHEntryBean}"
					action="dialog:updatehEntry" image="/images/icons/edit_icon.gif"
					value="#{msg.edit}" showLink="false" style="padding:4px" />
				<a:actionLink id="remove-added-rendering-engine-action-link"
					actionListener="#{DialogManager.bean.deleteAddedHEntryBean}"
					image="/images/icons/delete.gif" value="#{msg.remove}"
					showLink="false" style="padding:4px" />
			</h:column>
		</h:dataTable>

		<a:panel id="no-added-items"
			rendered="#{DialogManager.bean.addedEntryDataModel.rowCount == 0}">
			<h:panelGrid id="no-added-items-panel-grid" columns="1"
				cellpadding="2" styleClass="selectedItems" width="100%"
				rowClasses="selectedItemsHeader,selectedItemsRow">
				<h:outputText id="no-added-items-name" value="Added hEntries" />
				<h:outputText styleClass="selectedItemsRow" id="no-items-msg"
					value="#{msg.no_selected_items}" />
			</h:panelGrid>
		</a:panel>
	</h:panelGroup>

	<f:verbatim>
		<div style='padding: 4px 0px 0px 0px'></div>
	</f:verbatim>
	<h:panelGroup id="data-table-panel-group">
		<h:dataTable id="hentry-data-table"
			value="#{DialogManager.bean.selectedEntryDataModel}" var="row"
			rowClasses="selectedItemsRow,selectedItemsRowAlt"
			styleClass="selectedItems" headerClass="selectedItemsHeader"
			cellspacing="0" cellpadding="4" width="100%"
			rendered="#{DialogManager.bean.selectedEntryDataModel.rowCount != 0}">
			<h:column id="data-table-column-0">
				<f:facet name="header">
					<h:outputText id="data-table-name-0" value="Selected hEntry." />
				</f:facet>
				<f:verbatim>
					<img style="float: left"
						src="${pageContext.request.contextPath}/images/icons/hentry_list.gif" />
				</f:verbatim>
				<h:panelGrid id="panel_grid_row" columns="2" cellspacing="1"
					border="0">
					<h:outputText id="data-table-name-0-name" value="#{msg.name}: " />
					<h:outputText id="data-table-value-0-name" value="#{row.name}" />

					<h:outputText id="data-table-name-0-title" value="Title Property: " />
					<h:outputText id="data-table-value-0-title"
						value="#{row.titleDescription}" />

					<h:outputText id="data-table-name-0-summary"
						value="Summary Property: " />
					<h:outputText id="data-table-value-0-summary"
						value="#{row.summaryDescription}" />

					<h:outputText id="data-table-name-0-content"
						value="Content Property: " />
					<h:outputText id="data-table-value-0-content"
						value="#{row.contentDescription}" />

					<h:outputText id="data-table-name-0-updated"
						value="Updated Property: " />
					<h:outputText id="data-table-value-0-updated"
						value="#{row.updatedDescription}" />

					<h:outputText id="data-table-name-0-author"
						value="Author Property: " />
					<h:outputText id="data-table-value-0-author"
						value="#{row.authorDescription}" />

				</h:panelGrid>
			</h:column>
			<h:column id="data-table-column-5">
				<a:actionLink id="remove-select-rendering-engine-action-link"
					actionListener="#{DialogManager.bean.removeSelectedHEntryBean}"
					image="/images/icons/delete.gif" value="#{msg.remove}"
					showLink="false" style="padding:4px" />
			</h:column>
		</h:dataTable>

		<a:panel id="no-items"
			rendered="#{DialogManager.bean.selectedEntryDataModel.rowCount == 0}">
			<h:panelGrid id="no-items-panel-grid" columns="1" cellpadding="2"
				styleClass="selectedItems" width="100%"
				rowClasses="selectedItemsHeader,selectedItemsRow">
				<h:outputText id="no-items-name" value="Selected hEntries" />
				<h:outputText styleClass="selectedItemsRow" id="no-items-msg"
					value="#{msg.no_selected_items}" />
			</h:panelGrid>
		</a:panel>
	</h:panelGroup>

</jsp:root>